﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL_Class;

namespace NLLSite
{
    public partial class LienHe : System.Web.UI.Page
    {
        LienHephanhoi lie = new LienHephanhoi();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            FeedBack fb = new FeedBack();
            fb.FullName = TxtFnam.Text;
            fb.Email = TxtEmail.Text;
            fb.Content = TxtContent.Text;
            fb.DateSend = DateTime.Now;
            lblchk.Text = lie.AddNewFeedBack(fb);
            TxtContent.Text = string.Empty;
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            lblchk.Text = string.Empty;
            TxtFnam.Text = string.Empty;
           TxtEmail.Text= string.Empty;
           TxtContent.Text = string.Empty;
        }
    }
}